package dozerTest;

import java.util.List;
import java.util.Set;

import com.gosophia.commons.DozerProperty;


public class User {

	private String name;
	
	private Long id;
	
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
//	
	@DozerProperty(myField="childUser",beforeField="childUserDto")
	private List<User> childUser;
	
	private Set<User> users;
//	
	@DozerProperty(myField="pUser.pUser.id", beforeField="pId")
	private User pUser;

    public User getpUser() {
        return pUser;
    }

    public void setpUser(User pUser) {
        this.pUser = pUser;
    }

    public List<User> getChildUser() {
        return childUser;
    }

    public void setChildUser(List<User> childUser) {
        this.childUser = childUser;
    }

	public Set<User> getUsers() {
		return users;
	}

	public void setUsers(Set<User> users) {
		this.users = users;
	}
    
}
